package com.lamber.framework.exception;

/**
 * 权限异常
 */
public class AuthException extends RuntimeException {
    private static final long serialVersionUID = -785542791928644578L;
    private int status;

    public AuthException() {
        this("{authenticate fail!}");
    }

    public AuthException(String message) {
        this(message, 403);
    }

    public AuthException(String message, int status) {
        super(message);
        this.status = 403;
        this.status = status;
    }

    public AuthException(String message, Throwable cause, int status) {
        super(message, cause);
        this.status = 403;
        this.status = status;
    }

    public int getStatus() {
        return this.status;
    }

    @Override
    public void printStackTrace(){

    }

}